import httpInstance from "../utils/http";

export const loginAPI = ({username, password}) => {
    return httpInstance({
        url: '/login',
        method: 'POST',
        data: {
            username,
            password
        }
    })
}

export const registerAPI = ({username, password}) => {    
    return httpInstance({
        url: '/register',
        method: 'POST',
        data: {
            username,
            password
        }
    })
}